package com.example.dao.usercoupon;
import com.example.pojo.BeforeuserAndCoupon;
import com.example.pojo.Usercoupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserCouponDao {
    List<Usercoupon> getAll(Usercoupon usercoupon);
    boolean UpdateOnline(@Param("id") int id, @Param("code") int code);
    boolean addCoupon(Usercoupon usercoupon);
    boolean deleteCoupon(Integer id);
    List<BeforeuserAndCoupon> getUserCoupon(@Param("account") String account,@Param("nikename") String nikename);
    boolean giveCoupon(List<Usercoupon> coupons);
}
